#!/bin/sh

touch /tmp/MailStation.upgrade

PKG_VOL_TMP="/`echo $SYNOPKG_PKGDEST | cut -d'/' -f2`/@tmp"
mkdir -p $PKG_VOL_TMP

mv /var/packages/MailStation/target/postfix ${PKG_VOL_TMP}/postfix
ln -sf ${PKG_VOL_TMP}/postfix /var/spool/postfix

exit 0
